package next.apps.bean;

import java.util.Date;
import java.util.Objects;
import javax.persistence.Column;

public class OrderInfo {
    private String id;
    private String goodsId;
    private String name;
    private Integer number;
    private Date createTime;
    private Date updateTime;

    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        OrderInfo orderInfo = (OrderInfo) o;
        return Objects.equals(id, orderInfo.id) && Objects.equals(goodsId, orderInfo.goodsId) && Objects.equals(name, orderInfo.name) && Objects.equals(number, orderInfo.number) && Objects.equals(createTime, orderInfo.createTime) && Objects.equals(updateTime, orderInfo.updateTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, goodsId, name, number, createTime, updateTime);
    }

}
